a=$(jq -r '.upgrade' /factory/version/version.json)
if [ $a == "1" ]
then
#等于1 说明刚升级完成需要将参数分区的数据复制到对应的分区里面
#1.执行挂载任务
	mount -t vfat /dev/mtdblock5 /nfsroot/
	cp /nfsroot/Config /home/ -rfd && sync
	cp /nfsroot/etc/wpa_supplicant.conf /etc/ -rfd && sync
	cp /nfsroot/etc/ntp.conf /etc/ -rfd  && sync
	cp /nfsroot/factory/net/netproority /factory/net/ -rfd && sync
#	/usr/sbin/fw_setenv configupdate 0
#	/factory/version/version.sh &
	/factory/version/config_ap_ssid.sh &
	/bin/cp /factory/version/version_bak.json /factory/version/version.json -rfd
	sync 

	usleep 1000000
	umount /nfsroot/
else
#cp /factory/cfg/mdev.conf /etc/ -rf
sync

fi
/bin/cp /etc/hostapd_copy.conf /etc/hostapd.conf -rfd && sync

